﻿using System;
using System.Collections.Generic;
using BinarySerialization;

namespace EditMode
{
    /// <summary> 
    /// Technical zone area instruction. 
    /// </summary> 
    [Serializable]
    public class TechZoneArea
    {
        [FieldOrder(0)]
        public ushort StartBar { get; set; }

        [FieldOrder(1)]
        public ushort StartBeat { get; set; }

        [FieldOrder(2)]
        public ushort EndBar { get; set; }

        [FieldOrder(3)]
        public ushort EndBeat { get; set; }

        [FieldOrder(4)]
        public uint Color { get; set; }

        public TechZoneArea() { }

        public TechZoneArea(ushort startBar, ushort startBeat, ushort endBar, ushort endBeat, uint color = 0)
        {
            StartBar = startBar;
            StartBeat = startBeat;
            EndBar = endBar;
            EndBeat = endBeat;
            Color = color;
        }
    }
}
